package com.my.study.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerMapping;

import java.util.List;

/**
 * @author Carlos
 * @version 1.0.0
 * @date 2022/3/29 7:38
 */
@RestController
@RequestMapping("/dynamic")
public class DynamicGetController {

    @Autowired
    private RequestMappingHandlerMapping requestMappingHandlerMapping;



    @RequestMapping("/get/dynamic")
    public Object get() {
        List<String> fileExtensions = requestMappingHandlerMapping.getFileExtensions();

        return fileExtensions;
    }

}
